package com.security.demo.rep;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import com.security.demo.entity.SysUser;

/**
 * 用户的dao层接口
 * @author cj
 *
 */
@Repository
public interface SysUserRep extends CrudRepository<SysUser, Integer>{
	@Query("from SysUser where username=:username")
	SysUser findByUsername(@Param("username") String username);
}
